package com.kaifa.test;

/**
 * 计算当前时间距离你的下次生日还有多少天
 */
public class Work01 {
    public static void main(String[] args) {
        int num = 10;
        int days = 0;
        switch (num){
            case 10:
                System.out.println(10);
                days+=31;
            case 1:
                System.out.println(1);
                days+=31;
            case 2:
                System.out.println(2);
                days+=28;
            case 3:
                System.out.println(3);
                days+=31;
            case 4:
                System.out.println(4);
                days+=30;
            case 5:
                System.out.println(5);
                days+=31;
            case 6:
                System.out.println(6);
                days+=30;
            case 7:
                System.out.println(7);
                days+=31;
            case 8:
                System.out.println(8);
                days+=31;
            case 9:
                System.out.println(9);
                days+=30;
                break;
            case 11:
                System.out.println(11);
                days+=30;
            case 12:
                System.out.println(12);
                days+=31;
            default:
                System.out.println(0);
                days=0;
        }
        System.out.println(days);
    }
}
